from selenium import webdriver
from selenium.webdriver.common.by import By
from guoqing.config.config import config
class Page(config):
    url = 'https://www.baidu.com//'
    kw = (By.ID, 'kw')
    su = (By.ID, 'su')
    list = (By.XPATH, '/html/body/div[3]/div[4]/div[1]/div[3]')
    btn = (By.XPATH, '//*[@id="page"]/div/a[2]/span')
    next=(By.CLASS_NAME,'rightArrow_2RcSz')

    def open_url(self):
        self.get_url(self.url)

    def kw_send(self):
        self.send_keys(self.kw, '我喜欢软件测试')

    def su_click(self):
        self.click(self.su)

    def btn_click(self):
        self.click(self.btn)

    def find(self):
        self.find_elements(self.list)







